package love.yuanmeng.guetcoalsystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import love.yuanmeng.guetcoalsystem.pojo.Prop;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface PropMapper extends BaseMapper<Prop> {


    @Update("update guetcoal.prop set propstatus=${propstatus} where id=${id}")
    int updateProp(@Param("propstatus") String propstatus,@Param("id") String id);


    @Select("select * from prop where id=#{id}")
    Prop selectprop(@Param("id") String id);

}
